﻿<Window x:Class="Sidvall.UI.Wpf.Dialogs.SecurityDialog"
    xmlns:Converters="clr-namespace:Sidvall.UI.Wpf.Converters"
    xmlns:Controls="clr-namespace:Sidvall.UI.Wpf.Controls"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    FocusManager.IsFocusScope="True"
    Controls:AccessKeyScoper.IsAccessKeyScope="True"
    Height="270" Width="400" ShowInTaskbar="False" WindowStartupLocation="CenterOwner" Activated="Window_Activated">

    <Window.Resources>
        <Converters:BooleanToVisibilityConverter x:Key="BooleanToVisibilityConverter" />
    </Window.Resources>

    <Grid>
        <Controls:BusyIndicatorControl HeaderCaption="PROCESSING..." 
                                       Visibility="{Binding ViewModel.IsBusy, Converter={StaticResource BooleanToVisibilityConverter}, ElementName=SecurityControl, Mode=OneWay}" 
                                       Panel.ZIndex="20" />
        <Controls:SecurityControl x:Name="SecurityControl" CloseSelected="SecurityControl_CloseSelected" ViewTypeChanged="SecurityControl_ViewTypeChanged" />
    </Grid>
</Window>
